import {Column, Entity, PrimaryGeneratedColumn} from "typeorm";

@Entity('fd_survey_answer',{
    comment: '问卷答题记录表',
})
export class SurveyAnswerEntity {
    @PrimaryGeneratedColumn({ type: 'int', name: 'id', comment: '主键ID' })
    public id: number;

    @Column({ type: 'int', name: 'issue_id', default:null, comment: '题目ID' })
    public issueId: number;

    @Column({ type: 'int', name: 'sur_id', default:null, comment: '问卷ID' })
    public surId: number;

    @Column({ type: 'text', name: 'answer', default:null, comment: '答案' })
    public answer: string;

    @Column({ type: 'text', name: 'scored', default:null, comment: '得分' })
    public scored: string;

    @Column({ type: 'text', name: 'remark', default:null, comment: '备注' })
    public remark: string;

    @Column({ type: 'text', name: 'state', default:null, comment: '结果状态' })
    public state: string;

}
